package com.pengke.pangu.service.sys.service.impl;

import com.pengke.pangu.service.sys.entity.SysPermission;
import com.pengke.pangu.service.sys.mapper.SysPermissionMapper;
import com.pengke.pangu.service.sys.service.ISysPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 资源权限表 服务实现类
 * </p>
 *
 * @author lijunjie
 * @since 2025-02-14
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements ISysPermissionService {

    @Resource
    private SysPermissionMapper sysPermissionMapper;

    @Override
    public List<SysPermission> getSysPermissionByUserId(Map<String,Object> param) {
        return sysPermissionMapper.getSysPermissionByUserId(param);
    }

    @Override
    public List<SysPermission> getSysPermissionByRoleCode(String roleCode) {
        return sysPermissionMapper.getSysPermissionByRoleCode(roleCode);
    }

}
